<?php
class ChangeEmail extends Customer{
	public $confirm_email;
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}


	public function rules() {
		return array(
				array('email,confirm_email', 'required'),
				array('confirm_email','compare','compareAttribute'=>'email'),
				array('email,confirm_email','email'),
		);
	}

	public function beforeSave(){
		return true;
	}
	
	public function attributeLabels() {
		return array(
				'id' => Yii::t('app', 'ID'),
				'user_name' => Yii::t('app', 'User Name'),
				'email' => Yii::t('app', 'New Email'),
				'confirm_email'=>Yii::t('app', 'Confirm Email'),
				'email' => Yii::t('app', 'Email'),
				'created' => Yii::t('app', 'Created'),
				'status' => Yii::t('app', 'Status'),
		);
	}
}